/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package phd.dupenois.changeidentifiers.numberofdots;

import phd.dupenois.changeidentifiers.ChangeIdentifier;
import phd.dupenois.changeidentifiers.dotpatterns.DotPattern;
import phd.dupenois.changeidentifiers.footprints.Footprint;

/**
 *
 * @author mpd209
 */
public class NumberOfDots extends ChangeIdentifier{

    public double calculateChange(Footprint previousFootprint, DotPattern previousChangeCausingDotPattern, DotPattern dotPattern) {
        if(previousChangeCausingDotPattern==null) return 0d;
        return (double) dotPattern.size()-previousChangeCausingDotPattern.size();
    }
    
}
